import {
  Toast
} from "vant";

export default ({
  type,
  message
}) => {
  if (type === 'warning' || type === 'danger') {
    type = 'fail'
  }
  Toast({
    type,
    message
  })
}
